package com.zfy.service;

import com.zfy.dao.CategoryDao;
import com.zfy.entity.Category;

import java.util.List;

public class CategoryService {
    CategoryDao categoryDao = new CategoryDao();

    public List<Category> getCates(String name, Integer page, Integer limit) {
        return categoryDao.getCates(name, page, limit);
    }

    public boolean addCates(Category category) {
        return categoryDao.addCates(category);
    }

    public boolean updateCates(Category category) {
        return categoryDao.updateCates(category);
    }
}
